#include <iostream>
#include "point.h"

using namespace std;

Point add(Point &p1, Point &p2) {
    Point n;
    n.x = p1.x + p2.x;
    n.y = p1.y + p2.y;
    cout << "add pn: " << &n << endl;
    return n;
}

int main(int argc, char **argv) {
    Point p1(1, 2);
    Point p2(2, 3);

    Point n = add(p1, p2);
    cout << "main pn: " << &n << endl;
    n.printInfo();

    return 0;
}